/**
 * Created by dell-pc on 2016/8/11.
 */
/*swiper start*/
window.onload=function() {
    /*屏幕滑动*/
    var swiper = new Swiper('.swiper-container', {
        direction: 'vertical',
        nextButton: '.swiper-button-next',
        /*动画代码*/
        onInit: function(swiper){ //Swiper2.x的初始化是onFirstInit
            swiperAnimateCache(swiper); //隐藏动画元素
            swiperAnimate(swiper); //初始化完成开始动画
        },
        onSlideChangeEnd: function(swiper){
            swiperAnimate(swiper); //每个slide切换结束时也运行当前slide动画
        }
    });
}
